Skip to content

Conversation

dklawren
Copy link
Collaborator

@dklawren dklawren commented Aug 30, 2024

From bug:
We should include a Cookie Banner on BMO to reduce our exposure to legal risks from changes in EU and US privacy law of the last several years.
BMO has a number of non-essential cookies that improve the UX of the site. Even though these non-essential cookies are not used for tracking purposes, Legal have advised that a cookie banner is still warranted.

  • This pull request uses JS code written by the web team for use in Mozilla web properties that I have vendored into the codebase since we do not use webpack.
  • I updated the BMO JS to also not set keys in localStorage if cookie consent is rejected.
  • The changes also look at a special header that is already included by CloudOps which has the region code for the client. If the region is in the whitelist then it will show the banner, otherwise all works as before.
  • GoogleAnalytics code is removed completely as we do not use it anymore.
  • There is a new input in the user preferences to turn on or off cookie consent even after clicking the banner.

Let me know if you have any questions

@dklawren dklawren requested a review from cgsheeh November 27, 2024 23:42
Copy link
Collaborator

@cgsheeh cgsheeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly LGTM, just have a few questions and want to make sure that JSON.parse removal is expected.

…s. This doesn't require authenticated sessions.

- Added a cookie settings link to the user drop down below preferences and also a cookie settings link on the home page.
@dklawren dklawren requested a review from cgsheeh December 6, 2024 23:42
@dklawren dklawren merged commit 34c4020 into mozilla-bteam:master Jan 3, 2025
17 checks passed
@dklawren dklawren deleted the 1879792 branch January 3, 2025 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants